package com.baitiaojun.xss.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.List;

@Data
@Component
@ConfigurationProperties(prefix = "xss")
public class XssProperties {

    /**
     * 默认开启xss防御
     */
    private Boolean enable = true;

    /**
     * 排除的路径
     */
    private List<String> excludesUrl = Collections.emptyList();
}
